﻿using System;
namespace MODEL
{
    /// <summary>
    /// Message:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class Message
    {
        public Message()
        { }
        #region Model
        private int _mid;
        private int _mlid;
        private int _mfromuid;
        private Users mpfromuser; 
        private string _mcontent;
        private bool _misdel = false;
        private DateTime _maddtime = DateTime.Now;
        private bool _mislook = false;

        private LostAndFound mlaf;
        private Users mfromuser;
        private int? _mpfromuid;

        public LostAndFound Mlaf
        {
            get 
            {
                if (mlaf == null)
                {
                    mlaf = new LostAndFound();
                }
                return mlaf;
            }
            set { mlaf = value; }
        }

        public Users Mfromuser
        {
            get 
            {
                if (mfromuser == null)
                {
                    mfromuser = new Users();
                }
                return mfromuser; 
            }
            set { mfromuser = value; }
        }

        public Users Mpfromuser
        {
            get 
            {
                if (mpfromuser == null)
                {
                    mpfromuser = new Users();
                }
                return mpfromuser; 
            }
            set { mpfromuser = value; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int MId
        {
            set { _mid = value; }
            get { return _mid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int MLId
        {
            set { _mlid = value; }
            get { return _mlid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int MFromUId
        {
            set { _mfromuid = value; }
            get { return _mfromuid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public int? MPFromUId
        {
            set { _mpfromuid = value; }
            get { return _mpfromuid; }
        }
        /// <summary>
        /// 
        /// </summary>
        public string MContent
        {
            set { _mcontent = value; }
            get { return _mcontent; }
        }
        /// <summary>
        /// 
        /// </summary>
        public bool MIsDel
        {
            set { _misdel = value; }
            get { return _misdel; }
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime MAddTime
        {
            set { _maddtime = value; }
            get { return _maddtime; }
        }
        /// <summary>
        /// 
        /// </summary>
        public bool MIsLook
        {
            set { _mislook = value; }
            get { return _mislook; }
        }
        #endregion Model

    }
}

